<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用户中心_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user.css" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user_common.css" />
		<style type="text/css">
			.user-right .tabmenu {
				margin-bottom: 0;
			}
		</style>
	</head>

	<body>

		<tc_include file="Public:nav" />
		<div class="w990" id="content" style="background: none;">
			<div class="margin-w1210 clearfix">
				<div class="w">
					<div class="breadcrumb clearfix">
						<a href="/" class="index">首页</a> <span class="crumbs-arrow">&gt;</span> <span class="last">用户中心</span></div>
				</div>
				<div class="blank"></div>
				<tc_include file="Public:user_left" />
				<div class="user-right">
					<div class="box">
						<div class="tabmenu">
							<ul class="tab pngFix">
								<li class="first active">商品评价/晒单</li>
							</ul>
						</div>
						<div class="alert alert-success">
							<h4>操作提示：</h4>
							<ul>
								<li>您可查看完成评价订单,评价详情。</li>
							</ul>
						</div>
						<table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#eeeeee" class="item_list">
							<tbody>
								<tr>
									<th width="20%"></th>
									<th width="30%">商品信息</th>
									<th width="50%">评价</th>
									<!-- 					<th width="20%">晒单</th> -->
								</tr>
							</tbody>
							<tbody id="list_content">
								<foreach name="evaluate_list" item="v">
								<tr>
									<td colspan="4">评价时间：{:date('Y-m-d H:i:s',$v['addtime'])}</td>
								</tr>
								<tr>
									<td>
										<div style="display: inline-block;">
											<php>$shop_info=get_shop_info($v['goods_id']);</php>
											<a target="_blank" href="{:U('shop/index',array('id'=>$shop_info['id']))}">
												<img src="{$shop_info.image}" style="max-height: 160px">
											</a>
										</div>
									</td>
									<td>
										<div style="display: inline-block;">
											<a target="_blank" href="{:U('shop/index',array('id'=>$shop_info['id']))}">{$shop_info.title}</a>
										</div>
									</td>
									<td width="400">
										<div>
											<span>评分：</span>
											<for start="0" end="$v['scores']">
												<img src="/themes/wnsc/Home/User/images/star_red.png" style="width: 16px;">
											</for>
											
										</div><br>
										<div>商品评价：{$v['content']}</div>
										<div style="display: inline-block;width: 50px;"></div>
										<php>$img_array=explode(',',$v['image']);</php>
										<foreach name="img_array" item="vo">
											<img src="{$vo}" style="max-height: 60px;margin: 10px 10px 10px 0; ">
										</foreach>
										<notempty name="v.explain_first">
										<br>
										<div>[店家回复]：{$v.explain_first}</div>
										</notempty>
										<notempty name="v.again_content">
										<br>
										<div>追加评价：{$v.again_content}</div>
										<div style="display: inline-block;width: 50px;"></div>
										<php>$img_array=explode(',',$v['again_image']);</php>
										<foreach name="img_array" item="vo">
											<img src="{$vo}" style="max-height: 60px;margin: 10px 10px 10px 0; ">
										</foreach>
										</notempty>
										<notempty name="v.again_explain">
										<br>
										<div>[店家回复]：{$v.again_explain}</div>
										</notempty>
									</td>
								
								</tr>
								</foreach>
								<empty name="evaluate_list">
											<style>
											/*空记录的展示*/
											.tip-box{ width: 1000px; height: 300px; margin: 50px auto 0; text-align: center;}
											.tip-box .tip-icon{ display: block; max-width: 100%; max-height: 100%; margin: 0 auto;}
											.tip-box .tip-text{ line-height: 20px; padding: 10px; font-size: 14px;}
											.tip-box .tip-text p{ height: 40px; line-height: 40px;}

											</style>
											<div class="tip-box">
												<img src="/themes/wnsc/Home/List/images/noresult.png" class="tip-icon">
												<div class="tip-text">没有符合条件的记录</div>
											</div>
										</empty>
							</tbody>
						</table>
						
						<div id="pagination" class="page">
							<div class="page-wrap fr">
								<div class="total">共<span id="totalcount">{$evaluate_count}</span>条</div>
							</div>
							<style>
							.page-num .next {margin-left:0 ;}
							.page-num a{ float: left;text-align: center;border: 1px solid #eee;height: 35px;line-height: 35px;margin-right:4px;}
							.page-num span{float: left; text-align: center; height: 37px; line-height: 37px; width: 37px; margin-right:4px; background: red; color: #fff;}
							</style>
							<div class="page-num fr">
								{$evaluate_page}
							</div>
						</div>
					</div>
				</div>
			
			</div>
		</div>
		<div style="clear: both;"></div>

		<tc_include file="Public:footer" />

	</body>

</html>